package com.yidian.server.goods;

import com.yidian.entity.PageResult;
import com.yidian.pojo.goods.Category;

import java.util.List;
import java.util.Map;

/**
 * @author whb
 * @create 2021-05-19 15:36
 * @decription 商品分类Service
 */
public interface CategoryService {
    public List<Category> findAll();

    public PageResult<Category> findPage(int page, int size);

    public List<Category> findList(Map<String, Object> searchMap);

    public PageResult<Category> findPage(Map<String, Object> searchMap, int page, int size);

    public Category findById(Integer id);

    public void add(Category category);

    public void update(Category category);

    public void delete(Integer id);

    public List<Map> findCategoryTree();

    public void findCategoryTreeToRedis();
}